This is my answer to puzzle 1